package com.binyouwei.designpatterns.behavior.responsibility_link;

/**
 * @author 宾有为
 * @date 2024/7/17 20:10
 * @link https://blog.csdn.net/baidu_41616022?type=blog
 * @describe：责任链模式 - 抽象处理者
 **/
public abstract class ResponsibilityHandler {
    protected ResponsibilityHandler successor;

    public void setSuccessor(ResponsibilityHandler successor) {
        this.successor = successor;
    }

    public abstract void handleRequest(int request);
}
